要避免任何数与 0 相除或溢出,将所有除法转换为乘法并检查运算符号(Y2=Y1 的水平线不会计入算法)
To avoid any division by zero or overflow, transform all division into multiplication and check for the sign (horizontal lines with Y2=Y1 do not count in the algorithm)
我们对到a变为1为止所经历的除法、乘法的次数以及总共经历的步数感兴趣。
We are interested in the number of divisions, multiplications, and total number of steps until a reaches 1.
八元数实在是个古怪的东西,它们是仅有的可能做除法的四种数制中之一,因此容许运行满量程的代数运算。
They are one of only four number systems in which division is possible, and so allow the full range of algebraic operations to be performed.
应用推荐